package com.retailshop.shopuser.service.impl;

import com.retailshop.shopuser.entity.SignIn;
import com.retailshop.shopuser.entity.SignVoucherInfo;
import com.retailshop.shopuser.mapper.SignInMapper;
import com.retailshop.shopuser.service.SignInService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("signInService")
public class SignInServiceImpl implements SignInService {

    @Autowired
    SignInMapper signInMapper;

    @Override
    public int deleteByPrimaryKey(Integer signInId) {
        return signInMapper.deleteByPrimaryKey(signInId);
    }

    @Override
    public int insert(SignIn record) {
        return signInMapper.insert(record);
    }

    @Override
    public int insertSelective(SignIn record) {
        return signInMapper.insertSelective(record);
    }

    @Override
    public SignIn selectByPrimaryKey(Integer signInId) {
        return signInMapper.selectByPrimaryKey(signInId);
    }

    @Override
    public int updateByPrimaryKeySelective(SignIn record) {
        return signInMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SignIn record) {
        return signInMapper.updateByPrimaryKey(record);
    }

    @Override
    public SignVoucherInfo selectSignInByUsenoId(int userNoId, int signDays) {
        return signInMapper.selectSignInByUsenoId(userNoId, signDays);
    }


    @Override
    public int updateSignDays(SignIn signIn) {
        return signInMapper.updateSignDays(signIn);
    }

    @Override
    public SignIn selectByUserNoId(int userNoId) {
        return signInMapper.selectByUserNoId(userNoId);
    }

    @Override
    public int updateSignState() {
        return signInMapper.updateSignState();
    }

    @Override
    public List<SignIn> selectList() {
        return signInMapper.selectList();
    }


}
